package com.ruoyi.system.domain.aggregation;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 奖励对象 reward
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class Reward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 唯一交易id */
    @Excel(name = "唯一交易id")
    private String transId;

    /** 奖励名称 */
    @Excel(name = "奖励名称")
    private String rewardName;

    /** 奖励数量 */
    @Excel(name = "奖励数量")
    private Integer rewardAmount;

    /** 广告位ID */
    @Excel(name = "广告位ID")
    private String primeRit;

    /** 签名 */
    private String sign;

    /** 额外信息 */
    private String extra;

    /** 1、穿山甲2、taku */
    @Excel(name = "平台类型", readConverterExp = "1=穿山甲,2=taku")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTransId(String transId) 
    {
        this.transId = transId;
    }

    public String getTransId() 
    {
        return transId;
    }

    public void setRewardName(String rewardName) 
    {
        this.rewardName = rewardName;
    }

    public String getRewardName() 
    {
        return rewardName;
    }

    public void setRewardAmount(Integer rewardAmount) 
    {
        this.rewardAmount = rewardAmount;
    }

    public Integer getRewardAmount() 
    {
        return rewardAmount;
    }

    public void setPrimeRit(String primeRit) 
    {
        this.primeRit = primeRit;
    }

    public String getPrimeRit() 
    {
        return primeRit;
    }

    public void setSign(String sign) 
    {
        this.sign = sign;
    }

    public String getSign() 
    {
        return sign;
    }

    public void setExtra(String extra) 
    {
        this.extra = extra;
    }

    public String getExtra() 
    {
        return extra;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("transId", getTransId())
            .append("rewardName", getRewardName())
            .append("rewardAmount", getRewardAmount())
            .append("primeRit", getPrimeRit())
            .append("sign", getSign())
            .append("extra", getExtra())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}

